#include "receiver.h"
#include "sender.h"

#include<QApplication>
int main(int argc,char *argv[]){
    QApplication a(argc,argv);

    Sender*sender=new Sender();
    Receiver*receiver=new Receiver();
//    QObject::connect(sender,&Sender::signalName,receiver,&Receiver::slotName,Qt::UniqueConnection);
    QObject::connect(sender,&Sender::signalName,receiver,&Receiver::slotName);
    QObject::connect(sender,&Sender::signalName,receiver,&Receiver::slotName);
    emit sender->signalName();


    return a.exec();
}
